package com.mind.login.msg;
import java.util.List;
import java.util.ArrayList;
import com.mind.common.MessageCode;
import com.mind.core.net.msg.BaseMessage;
import java.util.Date;
/**网络连接协议
*自动生成类
*/
public class SessionMessage extends BaseMessage{
	/**连接状态0：断开  1：连接OK*/
	private Byte sessionState;
	public SessionMessage(){}
	public SessionMessage(Byte sessionState){
	  this.sessionState=sessionState;
	}
	/**获取连接状态0：断开  1：连接OK*/
	public Byte getSessionState(){
		return this.sessionState;
	}
	public boolean readImpl() {
		this.sessionState=readByte();
		return true;
	}
	public boolean writeImpl() {
		writeByte(this.sessionState);
		return true;
	}
	public short getMessageType() {
		return MessageCode.SessionMessage_CODE;
	}
}
